package com.wjk.kylin.mall.admin.beanmapper;

import com.wjk.kylin.mall.admin.bo.MenuBO;
import com.wjk.kylin.mall.admin.entity.MenuEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: wangjinkui
 * @Date: 2021/11/14
 * @Description : 菜单
 */
@Mapper
public interface MenuEntityMapper {
    MenuEntityMapper INSTANCE = Mappers.getMapper(MenuEntityMapper.class);

    /**
     * entity to bo
     * @param entity
     * @return
     */
    MenuBO entity2BO(MenuEntity entity);

    /**
     * entity to bo
     * @param entityList
     * @return
     */
    List<MenuBO> entity2BOs(List<MenuEntity> entityList);
}
